<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:cc="http://java.sun.com/jsf/composite">
	  
	<cc:interface>
		<cc:attribute name="id" default="xxx"/>
		<cc:attribute name="label" />
		<cc:attribute name="value" />
		<cc:attribute name="required" default="false"/>
		<cc:attribute name="requiredMessage" default="O campo #{cc.attrs.id} é obrigatório!"/>
	</cc:interface>
	
	<cc:implementation>
		<h:panelGrid columns="3">
			<h:outputText value="#{cc.attrs.label}" />
			<h:inputText id="#{cc.attrs.id}" value="#{cc.attrs.value}" required="#{cc.attrs.required}" />
			<h:message for="#{cc.attrs.id}" style="color:red"/>
		</h:panelGrid>
	</cc:implementation>
	  
</html>